package com.gb.demand.common.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 服务商客户发票表
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_sp_client_billingapply")
@ApiModel(value="SpClientBillingapply对象", description="服务商客户发票表")
public class SpClientBillingapply extends Model<SpClientBillingapply> implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("addTime")
    private Date addTime;

    @TableField("deleteStatus")
    private Boolean deleteStatus;

    @ApiModelProperty(value = "单据号")
    private String invoiceNo;

    @ApiModelProperty(value = "制单日期")
    private Date makeinvoiceDate;

    @ApiModelProperty(value = "摘要")
    private String summaryinfo;

    @ApiModelProperty(value = "发票类型 einvoice ：电子发票 ， invoice：普通发票，VATSpecialInvoice：增值税专用发票")
    private String invoiceType;

    @ApiModelProperty(value = "客户名称")
    private String clientname;

    @ApiModelProperty(value = "客户账号 ")
    private String clientAccountNumber;

    @ApiModelProperty(value = "客户税号")
    private String clientDutyParagraph;

    @ApiModelProperty(value = "服务商用户名")
    @TableField("sp_userName")
    private String spUsername;

    @ApiModelProperty(value = "服务商名称")
    private String spName;

    @ApiModelProperty(value = "订单金额合计")
    private BigDecimal totalprice;

    @ApiModelProperty(value = "订单发票号码")
    private String orderInvoiceNo;

    @ApiModelProperty(value = "订单发票日期")
    private Date orderInvoiceDate;

    @ApiModelProperty(value = "发票的状态，申请: 1、提交: 2 、审核: 3 、已开票: 4 、已收款: 5、已作废: 6 ,已重开 7，已冲红:8")
    private String invoiceStatus;

    @ApiModelProperty(value = "客户是client（南网来的客户）还是2buser(商城b用户)")
    private String clienttype;

    @ApiModelProperty(value = "开票流水号为20位,为金蝶开票使用的唯一标识")
    @TableField("serialNo")
    private String serialNo;

    @ApiModelProperty(value = "金蝶 发票代码")
    @TableField("invoiceCode")
    private String invoiceCode;

    @ApiModelProperty(value = "pdf下载地址")
    @TableField("pdfUrl")
    private String pdfUrl;

    @ApiModelProperty(value = "开票用户名 默认为用户名")
    private String billingclientname;

    @ApiModelProperty(value = "开户行")
    private String openingBank;

    @ApiModelProperty(value = "开票地址")
    private String billingAddress;

    @ApiModelProperty(value = "寄件地址")
    private String mailingAddress;

    @ApiModelProperty(value = "联系人手机")
    private String clientContactsphone;

    @ApiModelProperty(value = "金蝶增票发票代码")
    private String jdFpdm;

    @ApiModelProperty(value = "金蝶增票发票号码")
    private String jdFphm;

    @ApiModelProperty(value = "处理开票操作的人员id")
    private Long handlebillinguserId;

    @ApiModelProperty(value = "金蝶返回的增值税发票代码号码的详细内容")
    private String jdFpdmFphmInfo;

    @ApiModelProperty(value = "是否打印过发票")
    private Boolean hasprint;

    @ApiModelProperty(value = "是否是原发票点击冲红产生的，默认false")
    private Boolean createbych;

    @ApiModelProperty(value = "从哪个发票点击冲红产生的")
    private String createbyspcbaid;

    @ApiModelProperty(value = "是为冲红 正还是冲红负(冲红正：CHZ,冲红负：CHF)")
    private String chzorchf;


}
